//
//  circleAuthorModel.swift
//  OnceNectar
//
//  Created by Zhang Dream on 17/06/2018.
//  Copyright © 2018 com.inwhoop. All rights reserved.
//

import Foundation

import MappingAce

struct circleAuthorModel:Mapping {
    var age :String?
    var birthday :String?
    var concernsAmount :String?
    var concernType :String?
    var constellation :String?
    var fansAmount :String?
    var headIcon :String?
    var id :String?
    var matchDegree :String?
    var nickname :String?
    var score :String?
    var sexy :String?
    var username :String?
    var grade: gradeModel?
    
}

struct gradeModel: Mapping {
    var gradeCode :String?
    var gradeName :String?
}

extension circleAuthorModel{
    mutating func initGradeModel(dic: [String:Any]) {
        grade = gradeModel(fromDic: dic)
    }
    
    
}
